home *** CD-ROM | disk | FTP | other *** search
- protocol = _url.substr(0,_url.indexOf(":"));
- if(protocol == "file")
- {
- statusText = "SWF IS NOT ON SERVER....";
- gotoAndStop("swfLocal");
- play();
- }
- else if(protocol == "http")
- {
- doubleSlash = _url.indexOf("//");
- server = _url.substr(doubleSlash + 2,_url.indexOf("/",doubleSlash + 2) - doubleSlash - 2);
- server = server.toUpperCase();
- if(server.indexOf("WWW.") != -1)
- {
- server = server.substr(server.indexOf("WWW.") + 4,server.length);
- }
- if(server.indexOf("BUMPERBALL.DK") != -1 or server.indexOf("OXMOND.COM") != -1)
- {
- statusText = "SWF IS ON SERVER: BUMPERBALL.DK";
- gotoAndStop("htmlCheck");
- }
- else
- {
- statusText = "SWF IS ONLINE - BUT NOT ON BUMPERBALL.DK";
- gotoAndStop(1);
- getUrl("http://bumperball.dk", "_self");
- }
- }
-